/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package ds_Queue;

/**
 *
 * @author hcc25_000
 */
public class MyLinerNode<T> {
   private MyLinerNode<T> next;
   private T element;
   
   public MyLinerNode(){
       next=null;
       element=null;
   }
   
   public MyLinerNode(T elem){
       next=null;
       element=elem;
   }
   
   public MyLinerNode<T> getNext(){
       return next;
   }
   
   public void setNext(MyLinerNode<T> node){
       next=node;
   }
   
   public T getElement(){
       return element;
   }
   
}